[XEN, 32on64]: Correct continuation translation for large
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 6 Dec 2007 11:24:02 +0000 (11:24 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 6 Dec 2007 11:24:02 +0000 (11:24 +0000)
commit2bdf72b25a8f02929e8397c3f1eb14e34ca21a2b
tree6fbca3f7545e8d7ef99f30bc9db5550802b45c58
parent37f5ccfb57bc748ac51f1948e107079ee001d7d8
[XEN, 32on64]: Correct continuation translation for large
compat_mmuext hypercalls.

At the point where we translate the continuation "nat_ops" points to
the beginning of the batch of "i" entries, therefore it must be
incremented by the number of entries processed "i - left". At the same
point "cmp_uops" points to the end of the batch of entries and must
therefore be decremented by "left".

The new count value has already been set by do_mmuext_op to "left" and
therefore it is correct to add "count - i" since that is the number of
entries that remain after this batch.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
xen/arch/x86/x86_64/compat/mm.c
xen/include/asm-x86/guest_access.h